package com.oc.mba.entity;

import java.util.Collections;
import java.util.List;

public class PagingModel <T>{
	/** * 总记录数 */
	private int total;
	/** * 当前页的结果集 */
	private List<T> list;

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	/** * 返回集合 * @return List (size >=0) */
	public List<T> getList() {
		return (List<T>) (list == null ? Collections.emptyList() : list);
	}

	public void setList(List<T> list) {
		this.list = list;
	}
}